<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{main::head}">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="container-fluid">
    <form class="row justify-content-center">
        <div class="col-5">
            <label for="inputSearch5" class="visually-hidden">查找学生：</label>
            <input type="password" class="form-control" id="inputSearch5" placeholder="姓名学号或联系方式">
        </div>
        <div class="col-auto">
            <button type="submit" class="btn btn-primary mb-3">查找</button>
        </div>
    </form>

    <table class="table">
        <thead>
        <tr>
            <th>
                姓名
            </th>
            <th>
                得分
            </th>
            <th>
                做题时间
            </th>
            <th>
                提交时间
            </th>
            <th>
                操作
            </th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="sp:${studentWithPaperList}">
            <td th:text="${sp.name}">
                Tom
            </td>
            <td th:text="${sp.studentPaper.mark}">
                70
            </td>
            <td th:text="${#dates.format(${sp.studentPaper.start_time},'yyyy/MM/dd')}">
                20
            </td>
            <td th:text="${#dates.format(${sp.studentPaper.end_time},'yyyy/MM/dd')}">>
                2018/9/2
            </td>
            <td>
                <a class="link-dark text-decoration-none" th:href="@{view-paper-detail/${sp.studentPaper.id_paper}}">
                    查看做题详情
                </a>
            </td>
        </tr>
        </tbody>
    </table>
    <nav>
        <ul class="pagination justify-content-end">
            <li class="page-item disabled">
                <a class="page-link" href="#" tabindex="-1" aria-disabled="true">上一页</a>
            </li>
            <li class="page-item"><a class="page-link" href="#">1</a></li>
            <li class="page-item"><a class="page-link" href="#">2</a></li>
            <li class="page-item"><a class="page-link" href="#">3</a></li>
            <li class="page-item">
                <a class="page-link" href="#">下一页</a>
            </li>
        </ul>
    </nav>

</div>

</body>
</html>